//
//  LSZAudioSermonsVC+LCAVPlay.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/10/10.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZAudioSermonsVC+LCAVPlay.h"

@implementation LSZAudioSermonsVC (LCAVPlay)
- (void)creareAVPlay{
    // 安装通知
    [self setupNotificationsPraisePoetry];
}

#pragma mark - 通知处理 -
// 安装通知
- (void)setupNotificationsPraisePoetry {
    // 1. 安装播放状态发生变化的通知
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveNotificationPraisePoetry:) name:@"PUSHPLAYPAGE" object:nil];
}
#pragma mark - 通知处理回调
///跳转到播放页
- (void)receiveNotificationPraisePoetry:(NSNotification *)notification{
    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"LCPlayStoryboard" bundle:nil];
    UIViewController *controller = [sb instantiateInitialViewController];
    [self presentViewController:controller animated:YES completion:nil];
}

@end
